package com.suneast.suneaststore.modules.msg.chat;

import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.suneast.suneaststore.R;
import com.suneast.suneaststore.ui.fragments.BaseFragment;

import butterknife.BindView;
import butterknife.OnClick;

public class ChatFragment extends BaseFragment {
    @Override
    public @LayoutRes
    int setLayout() {
        return R.layout.fragment_chat;
    }

    @OnClick({R.id.img_back, R.id.btn_enter_store,
            R.id.img_add_file, R.id.img_face, R.id.btn_send_msg})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.img_back: {
                pop();
            }
            break;
            case R.id.btn_enter_store: {

            }
            break;
            case R.id.img_face: {

            }
            break;
            case R.id.img_add_file: {

            }
            break;
            case R.id.btn_send_msg: {

            }
            break;
        }
    }

    @BindView(R.id.tv_store_name)
    TextView storeNameTv;
    @BindView(R.id.tv_on_line_state)
    TextView onLineStateTv;
    @BindView(R.id.rv_chat)
    RecyclerView chatRv;

    private int storeId;
    private String storeName;

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, @NonNull View rootView) {
        storeId = getArguments().getInt("store_id");
        storeName = getArguments().getString("store_name");

        storeNameTv.setText(storeName);
    }
}
